package cn.topevery.garden.entity.po.basic;


import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import org.locationtech.jts.geom.Geometry;

/**
 * 带地图数据的基础实体类
 * @author loner
 */
public class BaseGeometryEntity extends BaseEntity {
    /** 经度(中心点) */
    @ApiModelProperty(value = "经度(中心点)")
    @DbTableField(columnName = "c_geo_x", dbType = DbTypeEnum.DOUBLE)
    public Double geoX;

    /** 纬度(中心点) */
    @ApiModelProperty(value = "纬度(中心点)")
    @DbTableField(columnName = "c_geo_y", dbType = DbTypeEnum.DOUBLE)
    public Double geoY;

    /** 墨卡托X(中心点) */
    @ApiModelProperty(value = "墨卡托X(中心点)")
    @DbTableField(columnName = "c_mector_x", dbType = DbTypeEnum.DOUBLE)
    public Double mectorX;

    /** 墨卡托Y(中心点) */
    @ApiModelProperty(value = "墨卡托Y(中心点)")
    @DbTableField(columnName = "c_mector_y", dbType = DbTypeEnum.DOUBLE)
    public Double mectorY;

    /** 经纬度多边形 */
    @ApiModelProperty(value = "经纬度多边形")
    @DbTableField(columnName = "c_geomCol", dbType = DbTypeEnum.OTHER)
    public Geometry geomCol;

    /** 墨卡托多边形 */
    @ApiModelProperty(value = "墨卡托多边形")
    @DbTableField(columnName = "c_geo_mercator", dbType = DbTypeEnum.OTHER)
    public Geometry geoMercator;
}
